$(function ($) {
	//可机读数据占比 Box04	
	var myChart = echarts.init(document.getElementById('DataBox04_Data'));
	var shadowColor = 'rgba(235,185,42,0.53)'; //发光颜色
	/*---------------------缩放----------------------------*/
	var scale = 1;
	
	var innerItemStyle = {
		normal: {
			label: {
				show: false
			},
			labelLine: {
				show: false
			},
			//shadowColor: 'rgba(38, 111,148, 0,5)',
			shadowBlur: 10,
		}
	};
	option = {
		legend: {
			show: false,
			itemGap: 12,
			data: ['可机读', '非机读']
		},
		series: [
			//可机读数据圆环
			{
				name: 'Line 0',
				type: 'pie',
				clockWise: true, //顺时加载
				hoverAnimation: false, //鼠标移入变大
				center: ['25%', '45%'],
				radius: ['70%', '70%'],
				itemStyle: innerItemStyle,
				itemStyle: {
					normal: {
						label: {
							show: true,
							textStyle: {
								fontSize: 14,
								fontWeight: "400",
								color: "#dbe9fc"
							},
							position: "center"
						},
						labelLine: {
							show: false
						}
					}
				},
				data: [{
						value: APICount()+FilesCount(),
						itemStyle: {
							normal: {
								borderWidth: 16,
								borderColor: {
									type: 'linear',
									x: 0,
									y: 0,
									x2: 0,
									y2: 1,
									colorStops: [{
										offset: 0,
										color: '#ffb400' // 0% 处的颜色
									}, {
										offset: 1,
										color: '#ff6d13' // 100% 处的颜色
									}],
									globalCoord: false // 缺省为 false
								},
								//shadowColor: shadowColor,
								//shadowBlur: 10
							},
							emphasis: {
								borderWidth: 20
							},
						},
						label: {
							normal: {
								formatter: '{d} %',
								position: 'center',
								padding: [0, 0, 20, 0],
								align: 'left',
								show: true,
								textStyle: {
									fontSize: 14,
									fontWeight: 'bold',
									color: '#ff9c00',
								}
							}
						}
					}, {
						value: LinkCount(),
						name: '可机读数据',
						itemStyle: {
							normal: {
								borderWidth: 6,
								borderColor: "#fff3d6"
							}
						}
					},

				]
			},
			//非机读数据圆环
			{
				name: 'Line 1',
				type: 'pie',
				clockWise: true, //顺时加载
				hoverAnimation: false, //鼠标移入变大
				center: ['75%', '45%'],
				radius: ['70%', '70%'],
				itemStyle: innerItemStyle,
				itemStyle: {
					normal: {
						label: {
							show: true,
							textStyle: {
								fontSize: 14,
								fontWeight: "400",
								color: "#dbe9fc",
							},
							position: "center"
						},
						labelLine: {
							show: false
						}
					}
				},
				data: [{
						value: LinkCount(),
						itemStyle: {
							normal: {
								borderWidth: 16,
								borderColor: {
									type: 'linear',
									x: 0,
									y: 0,
									x2: 0,
									y2: 1,
									colorStops: [{
										offset: 0,
										color: '#07c0ee' // 0% 处的颜色
									}, {
										offset: 1,
										color: '#5ba4ff' // 100% 处的颜色
									}],
									globalCoord: false // 缺省为 false
								},
								//shadowColor: "#d6f9fa",
								//shadowBlur: 10
							},
							emphasis: {
								borderWidth: 20
							},
						},
						label: {
							normal: {
								formatter: '{d} %',
								position: 'center',
								padding: [0, 0, 20, 0],
								align: 'left',
								show: true,
								textStyle: {
									fontSize: 14,
									fontWeight: 'bold',
									color: '#5ba4ff',
								}
							}
						}
					}, {
						value: APICount()+FilesCount(),
						name: '非机读数据',
						itemStyle: {
							normal: {
								borderWidth: 6,
								borderColor: "#d6f9fa"
							}
						}
					},

				]
			}
		],
	};
	myChart.setOption(option);

});